export const MyDialog = {
  components: {
    test: {
      template: `<el-button @click="$emit('close')">关闭</el-button>`,
      created() {
        console.log('create');
      }
    }
  },

  mixins: [
    window.WjcEasyElementUI.basePopupMixins({
      getDialogAttrs() {
        return {
          title: '弹框',
          widtht: '700px',
        }
      },
      beforeShow() {
        // this.$emit('content-loading', true)
        // setTimeout(() => {
        //   this.$emit('content-loading', false)
        // }, 1500)
        this.$emit('reload')
      },
      footer() {
        return {
          clickConfirmButton() {
            console.log('clickConfirmButton');
          }
        }
      }
    })
  ],

  render(h) {
    return h('div', null, [
      h('test', {
        on: {
          close: () => this.$emit('close')
        }
      })
    ])
  },
}